package com.tfjybj.msg.data;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @Description:
 * @Author: xuziguo
 * @Date: 2021/4/17 下午 7:36
 * @Modified By:
 * @Modify Date:
 */

@EnableJpaAuditing  //自定义实体的id策略-雪花算法；自动添加创建时间、自动更新更新时间用
@EnableSwagger2
@EnableDiscoveryClient
@SpringBootApplication
@ComponentScan(basePackages = "com.tfjybj.msg")
@EntityScan("com.tfjybj.msg.commons.entity.table")
public class MsgDataApplication {
    public static void main(String[] args) {
        SpringApplication.run(MsgDataApplication.class, args);
    }
}
